﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Commerce.Base.Ubl
{
    public class Price
    {
        private DataType.Amount priceAmount;
        private DataType.Quantity baseQuantity;
        private DataType.Rate orderableUnitFactorRate;

        /// <summary>
        /// Beløbet for Pris.
        /// </summary>
        public DataType.Amount PriceAmount
        {
            get { return priceAmount; }
            set { priceAmount = value; }
        }

        /// <summary>
        /// Den faktiske mængde, som Prisen gælder for.
        /// </summary>
        public DataType.Quantity BaseQuantity
        {
            get { return baseQuantity; }
            set { baseQuantity = value; }
        }

        /// <summary>
        /// Den faktor, der kan bruges til at omregne basisprisenheden til bestillingsenheden.
        /// </summary>
        public DataType.Rate OrderableUnitFactorRate
        {
            get { return orderableUnitFactorRate; }
            set { orderableUnitFactorRate = value; }
        }

        public override string ToString()
        {
            return this.priceAmount.ToString();
        }
    }
}
